package com.woniu.core.controller;

import com.woniu.aop.OperationLogAnnotation;
import com.woniu.core.service.CoreMenusService;
import com.woniu.util.utils.HttpResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Core/CoreMenu")
public class CoreMenuController {
    @Autowired
    private CoreMenusService coreMenusService;

    @RequestMapping("getUserMenu")
    public HttpResult<?> queryCoreMenusByAccount(String account) {
        return coreMenusService.queryCoreMenusByAccount(account);
    }
}
